package com.erp.programmer.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class IncomingOrderDto {
    /**
     * 进仓单号
     */
    private String id;

    /**
     * 采购单号 本次进仓所对应的是哪一条采购单
     */
    private String purchaseId;

    private PurchaseOrderDto purchaseOrderDto;
    /**
     * 卖方公司名称
     */
    private String sellerName;

    /**
     * 进仓日期 生成进仓单的日期
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date incomingDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(String purchaseId) {
        this.purchaseId = purchaseId;
    }

    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    public Date getIncomingDate() {
        return incomingDate;
    }

    public void setIncomingDate(Date incomingDate) {
        this.incomingDate = incomingDate;
    }

    public PurchaseOrderDto getPurchaseOrderDto() {
        return purchaseOrderDto;
    }

    public void setPurchaseOrderDto(PurchaseOrderDto purchaseOrderDto) {
        this.purchaseOrderDto = purchaseOrderDto;
    }

    @Override
    public String toString() {
        return "IncomingOrder{" +
                "id=" + id +
                ", purchaseId=" + purchaseId +
                ", sellerName=" + sellerName +
                ", incomingDate=" + incomingDate +
                "}";
    }
}
